<template>
  <div class="mt-4 ml-4">
    <el-table :data="tableData">
      <el-table-column prop="name" label="姓名"></el-table-column>
      <el-table-column prop="age" label="年龄"></el-table-column>
      <el-table-column prop="subject" label="科目"></el-table-column>
    </el-table>
  </div>
</template>

<script setup lang="ts">
import { ref } from 'vue'

const tableData = ref([
  { name: '张三', age: 18, subject: '语文' },
  { name: '李四', age: 19, subject: '数学' },
  { name: '王五', age: 20, subject: '英语' },
])
</script>
